package com.systop.asset.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.systop.asset.mapper.DisposalDetailMapper;
import com.systop.asset.entity.DisposalDetail;
import com.systop.asset.service.IDisposalDetailService;

/**
 * 处置单明细Service业务层处理
 * 
 * @author mc
 * @date 2025-07-03
 */
@Service
public class DisposalDetailServiceImpl implements IDisposalDetailService 
{
    @Autowired
    private DisposalDetailMapper disposalDetailMapper;

    /**
     * 查询处置单明细
     * 
     * @param id 处置单明细主键
     * @return 处置单明细
     */
    @Override
    public DisposalDetail selectDisposalDetailById(Long id)
    {
        return disposalDetailMapper.selectDisposalDetailById(id);
    }

    /**
     * 查询处置单明细列表
     * 
     * @param disposalDetail 处置单明细
     * @return 处置单明细
     */
    @Override
    public List<DisposalDetail> selectDisposalDetailList(DisposalDetail disposalDetail)
    {
        return disposalDetailMapper.selectDisposalDetailList(disposalDetail);
    }

    /**
     * 新增处置单明细
     * 
     * @param disposalDetail 处置单明细
     * @return 结果
     */
    @Override
    public int insertDisposalDetail(DisposalDetail disposalDetail)
    {
        return disposalDetailMapper.insertDisposalDetail(disposalDetail);
    }

    /**
     * 修改处置单明细
     * 
     * @param disposalDetail 处置单明细
     * @return 结果
     */
    @Override
    public int updateDisposalDetail(DisposalDetail disposalDetail)
    {
        return disposalDetailMapper.updateDisposalDetail(disposalDetail);
    }

    /**
     * 批量删除处置单明细
     * 
     * @param ids 需要删除的处置单明细主键
     * @return 结果
     */
    @Override
    public int deleteDisposalDetailByIds(Long[] ids)
    {
        return disposalDetailMapper.deleteDisposalDetailByIds(ids);
    }

    /**
     * 删除处置单明细信息
     * 
     * @param id 处置单明细主键
     * @return 结果
     */
    @Override
    public int deleteDisposalDetailById(Long id)
    {
        return disposalDetailMapper.deleteDisposalDetailById(id);
    }
}
